${OD} $2 >${TMPDIR}/bc2
${DIFF} ${TMPDIR}/bc1 ${TMPDIR}/bc2 || {
echo ERROR binary comparing $*
- let errorcount=errorcount+1
+ errorcount=`expr $errorcount + 1`
#exit 1
}
}
{
${DIFF} -u -b -w $* || {
echo ERROR comparing $*
- let errorcount=errorcount+1
+ errorcount=`expr $errorcount + 1`
#exit 1
}
}
${PNAME} $* || {
echo "$PNAME returned error $?"
echo "($PNAME $*)"
- let errorcount=errorcount+1
+ errorcount=`expr $errorcount + 1`
#exit 1
}
}
utf8bomcheck()
{
if [ ${RUNNINGVALGRIND} -ne 0 ]; then
- if [ "$(dd if=$1 bs=1 count=3 2>/dev/null)" == $'\xef\xbb\xbf' ]; then
+ if [ "$(dd if=$1 bs=1 count=3 2>/dev/null)" = $'\xef\xbb\xbf' ]; then
echo "ERROR: UTF-8 BOM found in $1"
- let errorcount=errorcount+1
+ errorcount=`expr $errorcount + 1`
fi
fi
}
xmlwfcheck()
{
if [ ${RUNNINGVALGRIND} -ne 0 ]; then
- if which ${XMLWF} >& /dev/null; then
+ if which ${XMLWF} 2>&1 /dev/null; then
# xmlwf is a bit lame, exit status is always 0
rm -f ${TMPDIR}/xmlwf.out
${XMLWF} $1 2>&1 | tee ${TMPDIR}/xmlwf.out
if [ -s ${TMPDIR}/xmlwf.out ]; then
echo "ERROR: xml is not well-formed in $1"
- let errorcount=errorcount+1
+ errorcount=`expr $errorcount + 1`
fi
fi
fi
# cambridge
# cup
-let errorcount=0;
+errorcount=0
if [ $# -ge 1 ]; then
while [ $# -ge 1 ];
fi
if [ ${RUNNINGVALGRIND} -ne 0 ]; then
- if which ${XMLWF} >& /dev/null; then
+ if which ${XMLWF} 2>&1 /dev/null; then
echo "Running well-formed XML test"
for i in ${XMLS}
do